

#ifndef __DIGEST_H_
#define __DIGEST_H_

#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdlib.h>

#ifdef __cplusplus_
#if __cplusplus_
	extern "C" {
#endif
#endif


/* ------------example--------------------
int main( )
{
	unsigned int crc = 0xffffffff;

    init_crc_table();  
    unsigned int ulRes = crc32( crc, "123", 4 );
  
    printf("The crc is:%x\n", ulRes );  

    return 0;
}
------------------------------------------*/

void init_crc_table(void);
unsigned int crc32(unsigned int crc, unsigned char * buffer, unsigned int size);



#ifdef __cplusplus_
#if __cplusplus_
	}
#endif
#endif


#endif
